﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace VERKProjectHopur16.Models
{
    public class PasswordRequestViewModel
    {
        #region Properties
        [Required(ErrorMessage = "Name required")]
        public String Name { get; set; }

        [RegularExpression(@"^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6}$", ErrorMessage = "Invalid Email Address")] 
        public String Email { get; set; }

        public int ChildID { get; set; }
        #endregion
    }
}